package com.zhongyu.comm.api;

import com.zhongyu.comm.pojo.Task;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDateTime;

public interface OrderApi {


    @RequestMapping("/orderApi/findTaskById")
    Task findTaskById(@RequestParam("id")String id);

    @RequestMapping("/orderApi/updateTryCountByTaskId")
    int updateTryCountByTaskId(@RequestParam("id")String id,@RequestParam("updateTime") LocalDateTime updateTime);

    @RequestMapping("/orderApi/processOrder")
    void processOrder(@RequestBody Task task);

    @RequestMapping("/orderApi/addTask")
    int addTask(@RequestBody Task task);
}
